package com.heima.user.controller;

import com.heima.model.user.dtos.UserFollowDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.user.service.UserFollowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/v1/user")
public class UserFollowController {


    @Autowired
    private UserFollowService userFollowService;
    @PostMapping("/user_follow")
    public ResponseResult userFollow(@RequestBody UserFollowDto dto){
        return userFollowService.userFollow(dto);
    }
}
